﻿using System.Windows.Media;

namespace WpfApp.ViewModels
{
    class LogBoxItem
    {
        public Brush Brush { get; set; } = Brushes.Black;

        public string Value { get; set; } = string.Empty;

        public static implicit operator LogBoxItem(string value)
        {
            return new LogBoxItem() { Value = value };
        }

        public static implicit operator LogBoxItem(Brush brush)
        {
            return new LogBoxItem() { Brush = brush };
        }

        public static implicit operator string(LogBoxItem item)
        {
            return item.Value;
        }
    }
}
